package tlias.mapper;

import org.apache.ibatis.annotations.Mapper;
import tlias.pojo.Emp;
import tlias.pojo.EmpsRequestParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface EmpMapper {
    void delete(Integer[] ids);

    List<Emp> getAllEmps(EmpsRequestParam param);
    void add(Emp emp);

//    void deleteExpr(Integer[] ids);

    Emp getById(Integer id);

    void update(Emp emp);

    List<Map<String, Object>> countEmpJob();

    List<Map<String,Object>> countEmpGender();

    Emp searchByUsernameAndPassword(Emp emp);
}
